package com.student.school.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Date;

@Entity
@Table(name = "class")
public class Class implements Serializable {

    @Id
    private String id;

    private String name;

    private String dept_id;

    private String assistant;

    private String assistant_mobile;

    private Date regdate;

    private Date updatedate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDept_id() {
        return dept_id;
    }

    public void setDept_id(String dept_id) {
        this.dept_id = dept_id;
    }

    public String getAssistant() {
        return assistant;
    }

    public void setAssistant(String assistant) {
        this.assistant = assistant;
    }

    public String getAssistant_mobile() {
        return assistant_mobile;
    }

    public void setAssistant_mobile(String assistant_mobile) {
        this.assistant_mobile = assistant_mobile;
    }

    public Date getRegdate() {
        return regdate;
    }

    public void setRegdate(Date regdate) {
        this.regdate = regdate;
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }

    @Override
    public String toString() {
        return "Class{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", dept_id='" + dept_id + '\'' +
                ", assistant='" + assistant + '\'' +
                ", assistant_mobile='" + assistant_mobile + '\'' +
                ", regdate=" + regdate +
                ", updatedate=" + updatedate +
                '}';
    }

}
